/*
 *   Copyright (c) 2010-2022, SIUFUNG
 */
package net.siufung.market.base.tenant.service;


import net.siufung.market.base.tenant.mapper.entity.Tenant;
import net.siufung.market.base.tenant.mapper.entity.TenantProfile;
import net.siufung.market.base.tenant.mapper.entity.TenantQuota;
import net.siufung.mybatis.base.BaseService;

import java.util.List;


/**
 * 系统租户表 数据服务
 *
 * @author 陈建峰
 * @since 2022-07-06 14:45:08
*/
public interface ITenantService extends BaseService<Tenant> {

    /**
     * 保存租户
     * @param tenant 保存租户
     * @param tenantProfile 租户属性
     * @return Boolean
     */
    Boolean save(Tenant tenant, TenantProfile tenantProfile);

    /**
     * 保存租户
     * @param tenant 保存租户
     * @param tenantProfile 租户属性
     * @param tenantQuotaList 租户配额列表
     * @return Boolean
     */
    Boolean save(Tenant tenant, TenantProfile tenantProfile, List<TenantQuota> tenantQuotaList);

    /**
     * 更新租户信息
     * @param tenant 租户
     * @param tenantProfile 租户属性
     * @return Boolean
     */
    Boolean updateById(Tenant tenant, TenantProfile tenantProfile);

}